package cn.com.eado.crm.m.db

import androidx.lifecycle.LiveData
import androidx.room.*


@Dao
interface ClientDao {
    @Insert//(onConflict = OnConflictStrategy.REPLACE)
    fun insert(client: Client)

    @Insert//(onConflict = OnConflictStrategy.REPLACE)
    fun insertAll(clients: List<Client>)

//    @Insert(onConflict = OnConflictStrategy.REPLACE)
//    fun replaceAll(provinces: List<Client>)

//    @Insert(onConflict = OnConflictStrategy.REPLACE)
//    fun replace(client: Client)

//    @Delete
//    fun delete(client: Client)

//    @Update
//    fun update(client: Client)

    @Query("select * from client")  //查询所有
    fun queryAll(): List<Client>?

}